package day_02;

/**
 * @ClassName Test03
 * @Description TODO
 * @Author hp
 * @Date 2021/6/3 14:14
 * @Version 1.0
 **/
public class Test03 {
    public static void main(String[] args) {

            int a = 1;
            int b = 2;
            int c = 0;
            boolean flag = false;
            if(flag=true){
                c = a++ + b;
            }

            if(flag=false){
                c = ++a - b;
            }
            System.out.println("a = " + a); //2
            System.out.println("b = " + b); //2
            System.out.println("c = " + c); //3

    }

}
